import { Rect } from "leafer-game";
import { Leafer, registerUI } from '@leafer-ui/core'
@registerUI()
export class Background extends Leafer {
    public get __tag() { return 'Background' }
    constructor() {
        super();
        const rect = new Rect({
            x: 0,
            y: 0,
            width: window.innerWidth,
            height: window.innerHeight,
            fill: '#32cd79',
            draggable: false
        })
        super.add(rect)
    }
}